<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"%>
<%@ page import="com.comment.pojo.*,com.comment.web.*,java.util.*" %>
<% List<Comment> comments = new CommentAction().query();%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>留言</title>
<link href="res/style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="jquery-1.4.3.js"></script>
<script type="text/javascript">
	//$(function(){
	//	$.get("test.php", { name: "John", time: "2pm" } );
	//});
</script>
</head>
<body>
<div id="wrapper">
	<div id="content">
		<ol class="commentlist">
			<% for(Comment c:comments){%>
			<li  class="comment even thread-odd thread-alt depth-1">
      			<div class="author_box">
			      <div style="display:none;" class="t"></div>
				  <span class="comment-author"><strong><%=c.getUsername()%></strong> :</span>
				  <span class="datetime"><%=c.getContact()%></span>
			    </div>
				<p><%=c.getContent()%></p>
				<div class="clear"></div>
			</li>
			<% }%>
		</ol><!-- commentlist -->
		
	</div><!-- content -->
</div><!-- wrapper -->

</body>
</html>